All Plays
All Plays
Get all the Golazos Set structs.
Note: This will eventually be long.
Returns: [Golazos.PlayData]
- A list of all the Golazos play data
import Golazos from 0xGOLAZOSADDRESS
pub fun main(): [Golazos.PlayData] {
let plays: [Golazos.PlayData] = []
var id: UInt64 = 1
// Note < , as nextPlayID has not yet been used
while id < Golazos.nextPlayID {
plays.append(Golazos.getPlayData(id: id)!)
id = id + 1
}
return plays
}